Resolve PowerShell 7.2 compatibility failures caused by reliance on deprecated legacy registry keys for engine version detection.